package project2;

public class bankaccount {
    private int[] order={1,2,3,4,5,6};
    private int wealth=0;

    public int[] getOrder() {
        return order;
    }

    public int getWealth() {
        return wealth;
    }

    public void setOrder(int[] order) {
        this.order = order;
    }

    public void setWealth(int wealth) {
        this.wealth = wealth;
    }
    public void intcount(int money)
    {
        this.wealth=this.wealth+money;
    }
    public void outcount(int money)
    {
        if(money>wealth)
            System.out.println("余额不足");
        else
            wealth=wealth-money;
    }

    public bankaccount(int wealth) {
        this.wealth = wealth;
    }
}
